package org.dtrd.modules.achievement.entity.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.config.system.Constant;

import java.util.Date;

/**
 * @author xiao
 * @date 2022/7/31 6:29 PM
 */
@Data
@ApiModel(value = "打卡计划基类")
public class BaseSigninPlan {

    @ApiModelProperty(value = "记录ID")
    private Integer dataId;

    @ApiModelProperty(value = "患者id")
    private Integer patientId;

    @ApiModelProperty("打卡模版id")
    private Integer signInTemplateId;

    @ApiModelProperty("打卡模版名字")
    private String signInTemplateName = "默认模版";

    @ApiModelProperty("打卡状态, 0-未开始, 1-使用中, 2-已结束, 4-暂停中")
    private Integer signInStatus;
    @ApiModelProperty("打卡状态文本")
    private String signInStatusText;

    @ApiModelProperty(value = "开始日期,yyyy-MM-dd", example = "2021-09-21")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private Date signInStartdate;

    @ApiModelProperty(value = "结束日期,yyyy-MM-dd", example = "2021-09-21")
    @JsonFormat(pattern = Constant.TIME_PATTERN_SDF, timezone = "GMT+8")
    private Date signInEnddate;

    @ApiModelProperty(value = "打卡计划-JSON串")
    @JsonIgnore
    private String signInJson;

}
